package com.example.demo1.Demo2;

import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Service;

@Service
public class PeopleService {

    @Bean
    public void sayhi(){
        System.out.println("hi.peopleService");
    }

    @Bean
    public void sayhello(){
        System.out.println("hello peopleService");
    }
}
